home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gnome-vfs-module-2.0 / libgnomevfs / gnome-vfs-module-shared.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-01  |  2.2 KB  |  62 lines

  1. /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
  2. /* gnome-vfs-module-shared.h - code shared between the different modules
  3.    place.
  4.  
  5.    Copyright (C) 2001 Free Software Foundation
  6.  
  7.    The Gnome Library is free software; you can redistribute it and/or
  8.    modify it under the terms of the GNU Library General Public License as
  9.    published by the Free Software Foundation; either version 2 of the
  10.    License, or (at your option) any later version.
  11.  
  12.    The Gnome Library is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the GNU
  15.    Library General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU Library General Public
  18.    License along with the Gnome Library; see the file COPYING.LIB.  If not,
  19.    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.    Boston, MA 02111-1307, USA.
  21.  
  22.    Author: Seth Nickell <snickell@stanford.edu
  23.  */
  24.  
  25. #ifndef GNOME_VFS_MODULE_SHARED_H
  26. #define GNOME_VFS_MODULE_SHARED_H
  27.  
  28. /* This check is for Linux, but should be harmless on other platforms. */
  29. #if !defined (_LARGEFILE64_SOURCE) || _FILE_OFFSET_BITS+0 != 64
  30. #error configuration macros set inconsistently, gnome_vfs_stat_to_file_info will malfunction
  31. #endif
  32.  
  33. #include <libgnomevfs/gnome-vfs-file-info.h>
  34. #include <libgnomevfs/gnome-vfs-monitor.h>
  35. #include <libgnomevfs/gnome-vfs-method.h>
  36.  
  37. G_BEGIN_DECLS
  38.  
  39. const gchar *   gnome_vfs_mime_type_from_mode     (mode_t             mode);
  40.  
  41. void            gnome_vfs_stat_to_file_info    (GnomeVFSFileInfo  *file_info,
  42.                              const struct stat *statptr);
  43.  
  44. GnomeVFSResult  gnome_vfs_set_meta              (GnomeVFSFileInfo  *info,
  45.                              const char        *file_name,
  46.                              const char        *meta_key);
  47.  
  48. GnomeVFSResult  gnome_vfs_set_meta_for_list     (GnomeVFSFileInfo  *info,
  49.                              const char        *file_name,
  50.                              const GList       *meta_keys);
  51.     
  52. const char     *gnome_vfs_get_special_mime_type (GnomeVFSURI       *uri);
  53.  
  54. void            gnome_vfs_monitor_callback (GnomeVFSMethodHandle *method_handle,
  55.                         GnomeVFSURI *info_uri,
  56.                         GnomeVFSMonitorEventType event_type);
  57.  
  58.  
  59. G_END_DECLS
  60.  
  61. #endif
  62.